<template>
  <div class="hello">
    <el-card class="main" title="short">
        <el-button type='primary' @click="toLong">
            长
        </el-button>
        <el-button type='primary' @click="toShort">
            短
        </el-button>
    </el-card>
    
  </div>
</template>

<script>
export default {
  name: 'hzjmain',
  props: {
    msg: String
  },
  methods:{
      toLong() {
          this.$router.push('./long')
      },
      toShort() {
          this.$router.push('./short')
      }

  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
